<%@ page import="java.text.DecimalFormat" %>
<g:set var="order" value="${app.order}"/>

<div class="row-fluid" id="order-${order.id}">
    <div class="span12">
        <div class="span2">
            <a href=#>${order.client.name}</a>
        </div>
        <div class="span10">
            <g:set var="lessLength" value="${Math.min(100,order.summary.length()-1)}"/>
            <g:set var="needMore" value="${order.summary.length()-1 > 100}"/>
            <div class="read-less-content">
                ${order.summary[0..lessLength]}${needMore ? '...':''}
                <g:if test="${needMore}">
                    <a href="#" class="read-more"><g:message code="more"/></a>.</br>
                </g:if>
            </div>
            <div class="read-more-content" style="display:none;">
                ${order.summary}
                <a href="#" class="read-less"><g:message code="less"/></a>.</br>
            </div>
            <g:message code="orderlist.due"/>: <g:formatDate date="${order.deadlineDate}"/> </br>
            ${order.language.description} </br>
            ${order.fieldOfExpertise.name} </br>
            <g:message code="your.price"/>: ${new DecimalFormat("#0.##").format(app.price)}</br>
            <g:message code="you.get"/>: ${new DecimalFormat("#0.##").format(app.price-app.price*(usfee+bankfee))}</br>
            <g:message code="orderlist.canstart"/>: <g:formatDate date="${app.canStart}"/></br>
            <g:message code="orderlist.canfinish"/>: <g:formatDate date="${app.canFinish}"/></br>
            <a id="provider-remove" href="/provider/remove/${order.id}"><g:message code="remove"/></a>

        </div>
    </div>
</div>